import request from '@/utils/request'


// 获取缺陷记录列表
export function getInspectionitemdefectList(data) {
    return request({
        url: `/api/Business/Inspectionitemdefect`,
        method: 'get',
        data,
		options: {
			load: false
		}
    })
}

// 保存缺陷记录
export function createInspectionitemdefect(data) {
    return request({
        url: '/api/Business/Inspectionitemdefect',
        method: 'post',
        data
    })
}

// 获取所有缺陷类型
export function getDefactAll(data) {
      return request({
			url: `/api/BaseData/Defect/All`,
			method: 'get'
	});
}

// 删除缺陷记录
export function deleteInspectionitemdefect(id){
	return request({
		url:'/api/Business/Inspectionitemdefect/'+id,
		method:'delete'
	})
}